home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13028 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: gemini.coi.pw.edu.pl!news-adm@io.coi.pw.edu.pl
  2. From: "Marek Brudka (A. Pacut)" <brudka@ia.pw.edu.pl>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: making an <include.h> file
  5. Date: Wed, 03 Apr 1996 19:52:11 +0200
  6. Organization: Warsaw University of Technology
  7. Message-ID: <3162BACB.1ABE@ia.pw.edu.pl>
  8. References: <4js1iu$p1i@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: bobas.ia.pw.edu.pl
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-2
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 3.0b2 (X11; I; SunOS 5.4 sun4c)
  14.  
  15. MJAlford wrote:
  16. > How does one setup a UNIX System / Makefile so that a "*.h" file is
  17. > considered
  18. > a system include file?  I don't want to put it in /usr/include.  I'm
  19. > assuming I do
  20. > the same thing so that my "library.so" is considered a system library.
  21. > Thanks,
  22. > Michael Alford
  23. >
  24.  You can do it in few ways, generally you should modify the search path
  25. for include(library) files. I do not know what UNIX/compiler you use
  26. but I suppose you can do one of the following:
  27. 1. Add appropriate switch to your command line when invoking the cc,
  28. for example (Solaris): cc <something> -IPathToMyIncludeFiles
  29. 2. Change in your makefile the CCFLAG variable, or change the default
  30. makefile rules (for Solaris OS :</usr/share/lib/make/make.rules>)   
  31. 3. Various unixlike OSes have compilers looking for an appropriate
  32. system variable for example: INCLUDE (Watcom). Add to this variable the
  33. directory containig your include files in your profile.
  34.  
  35. I hope presented suggestions help you to deal with the problem. 
  36.                         Regards
  37.                         Marek Brudka
  38.